Skip to content

fix(player): always show settings button in fullscreen and improve danmaku input focus - #7

Open
The-R0 wants to merge 1 commit into
NihilDigit:mainfrom
The-R0:pr-fullscreen-settings-and-danmaku
Open

The-R0 wants to merge 1 commit into
NihilDigit:mainfrom
The-R0:pr-fullscreen-settings-and-danmaku

Conversation

@The-R0

@The-R0 The-R0 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

变化

  • 全屏模式顶栏与底栏常驻设置按钮(BilbyPlayer.kt、LiveRoomScreen.kt):
    • 全屏顶栏右侧与底部控制条始终保留通用设置按钮(PlayerSettingsButton),将中间段的弹幕输入框与档位 chip 放入 BoxWithConstraints(Modifier.weight(1f)) 中并在空间不足时优先收起 chip,确保右侧的弹幕开关、设置与全屏按钮在任何字号或屏幕宽度下都不会被挤出屏幕。
  • 弹幕输入框聚焦与收起体验优化(ControlBarDanmakuField.kt、PlayerShell.kt):
    • 窄屏点击「发弹幕」展开输入框且草稿为空时,框尾提供 × 关闭按钮以便一键收起;
    • 接入 ReleaseFocusWhenKeyboardHides,系统手势收起软键盘或点按画面空白处时同步释放输入框焦点并退出输入态。

截图

横屏全屏(顶栏与底栏常驻设置按钮 + 弹幕输入框) 竖屏全屏双行控制条 窄宽展开弹幕输入(带 × 收起按钮)
横屏全屏 竖屏全屏 弹幕输入收起按钮

…nmaku input focus

Always render PlayerSettingsButton in both the fullscreen top bar and bottom control bar, wrap the inline danmaku field and setting chips in a weighted BoxWithConstraints so right-side buttons are never pushed off-screen, and add a close action plus keyboard-hide focus release to ControlBarDanmakuField.
@The-R0
The-R0 force-pushed the pr-fullscreen-settings-and-danmaku branch from 923f233 to 5fe98fa Compare November 12, 2026 02:33
@NihilDigit

Copy link
Copy Markdown
Owner

全屏顶栏/底栏的设置入口和控制条排布这部分交互我打算重新考虑怎么设计,请先把 BilbyPlayer.kt 和 LiveRoomScreen.kt 里相关的顶栏/底栏改动去掉,基于最新 main rebase 后只保留弹幕输入与焦点相关的修改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants